package cn.tedu.malls.product.webapi.mapper;

import cn.tedu.malls.pojo.entity.Category;
import cn.tedu.malls.pojo.vo.CategoryListItemVO;
import cn.tedu.malls.pojo.vo.CategoryStandardVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface CategoryMapper {
    CategoryStandardVO getByName(String name);
    CategoryStandardVO getById(Long id);
    int addNew(Category category);
    int updateById(@Param("id") Long id,@Param("parent") Integer parent);
    List<CategoryListItemVO> list();
    List<CategoryStandardVO> listDetails();
}

